/*
* FileName Size.h
*/

#ifndef __DEEPZOOMIMAGESIZE_H__
#define __DEEPZOOMIMAGESIZE_H__

 #include <glib.h>
// #include "pal.h"
#include "Thickness.h"

namespace DeepZoomImage
{
	struct Size 
	{
		double width, height;

		Size ();
		Size (int zero);
		Size (double w, double h);

		bool IsEmpty () const;

		Size Max(double w, double h) const;
		Size Max(const Size &s) const;
		Size Min(double w, double h) const;
		Size Min(const Size &s) const;

		Size GrowBy(const double w, const double h) const;
		Size GrowBy(const Thickness &t);

		bool operator == (const Size &size) const;
		bool operator != (const Size &size) const;

		static bool FromStr (const char *s, Size *size);
	};
}
#endif